Skip to content

Fix HttpBindingsMissing skipping REST protocol services#3122

Merged
kstich merged 1 commit into
mainfrom
dev/kstich/fix-http-bindings-missing-validator
May 14, 2026
Merged

Fix HttpBindingsMissing skipping REST protocol services#3122
kstich merged 1 commit into
mainfrom
dev/kstich/fix-http-bindings-missing-validator

Conversation

@kstich
Copy link
Copy Markdown
Contributor

@kstich kstich commented May 14, 2026

The HttpBindingsMissingValidator had a top-level short-circuit that returned early when no shape in the model carried @http. Services with a protocol like restJson1 that requires @http on all operations would pass validation silently when no operations had the trait yet.

Fixes #3119


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kstich kstich requested a review from a team as a code owner May 14, 2026 16:44
@kstich kstich requested a review from sugmanue May 14, 2026 16:44
The `HttpBindingsMissingValidator` had a top-level short-circuit that
returned early when no shape in the model carried `@http`. Services
with a protocol like `restJson1` that requires `@http` on all
operations would pass validation silently when no operations had the
trait yet.
@kstich kstich force-pushed the dev/kstich/fix-http-bindings-missing-validator branch from 3646a64 to 3ec4aa6 Compare May 14, 2026 17:05
@kstich kstich merged commit 404b9d6 into main May 14, 2026
27 of 28 checks passed
@kstich kstich deleted the dev/kstich/fix-http-bindings-missing-validator branch May 14, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpBindingsMissingValidator skips validating services when no http trait is yet applied

2 participants